﻿<%@ Page Title="Add a review" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="AddBeach.aspx.vb" Inherits="BeachesInGreece.AddBeach" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Add Beach</h2>

 <table>
            <tr>
                <td>Beach Name</td>
                <td>
                    <asp:TextBox ID="tb_beachName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_beachName" CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Region</td>
                <td>
                    <asp:DropDownList ID="ddl_Region" runat="server">
                        <asp:ListItem Selected="True">Thrace</asp:ListItem>
                        <asp:ListItem>Macedonia</asp:ListItem>
                        <asp:ListItem>Thessaly</asp:ListItem>
                        <asp:ListItem>Epirus</asp:ListItem>
                        <asp:ListItem>Central Greece</asp:ListItem>
                        <asp:ListItem>Peloponnese</asp:ListItem>
                        <asp:ListItem>Aegean Islands</asp:ListItem>
                        <asp:ListItem>Ionian Islands</asp:ListItem>
                        <asp:ListItem>Crete</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Location</td>
                <td>
                    <asp:TextBox ID="tb_Location" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="tb_Location" CssClass="field-validation-error" 
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Description</td>
                <td>
                    <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tb_Description" CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Review</td>
                <td>
                    <asp:TextBox ID="tb_Review" runat="server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tb_Review" CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>User Rating</td>
                <td>
                    <asp:RadioButtonList ID="rbl_Rating" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>Picture</td>
                <td>
                    <asp:FileUpload ID="f_Picture" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="f_Picture" CssClass="field-validation-error" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="f_Picture" CssClass="field-validation-error" ErrorMessage="Please Upload a valid Picture format" ValidationExpression="^.*\.(jpg|JPG|gif|GIF|png|PNG|bmp|BMP)$"></asp:RegularExpressionValidator>
                </td>
            </tr>
        </table>
        <br />
        <br />

        <asp:Button ID="btn_AddBeach" runat="server" Text="Add Beach"/>
</asp:Content>
